package view

import (
	"fmt"
	"io/ioutil"
	"strings"
)

// bindata_read reads the given file from disk. It returns an error on failure.
func bindata_read(path, name string) ([]byte, error) {
	buf, err := ioutil.ReadFile(path)
	if err != nil {
		err = fmt.Errorf("Error reading asset %s at %s: %v", name, path, err)
	}
	return buf, err
}

// view_base_page_index_html reads file data from disk. It returns an error on failure.
func view_base_page_index_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\base_page\\index.html",
		"view/base_page/index.html",
	)
}

// view_base_page_login_index_html reads file data from disk. It returns an error on failure.
func view_base_page_login_index_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\base_page\\login\\index.html",
		"view/base_page/login/index.html",
	)
}

// view_base_page_login_test_html reads file data from disk. It returns an error on failure.
func view_base_page_login_test_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\base_page\\login\\test.html",
		"view/base_page/login/test.html",
	)
}

// view_bindata_go reads file data from disk. It returns an error on failure.
func view_bindata_go() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\bindata.go",
		"view/bindata.go",
	)
}

// view_index_html reads file data from disk. It returns an error on failure.
func view_index_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\index.html",
		"view/index.html",
	)
}

// view_other_file_history_html reads file data from disk. It returns an error on failure.
func view_other_file_history_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\other\\file_history.html",
		"view/other/file_history.html",
	)
}

// view_pages_index_ck_demo_html reads file data from disk. It returns an error on failure.
func view_pages_index_ck_demo_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\ck_demo.html",
		"view/pages/index/ck_demo.html",
	)
}

// view_pages_index_file_html reads file data from disk. It returns an error on failure.
func view_pages_index_file_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\file.html",
		"view/pages/index/file.html",
	)
}

// view_pages_index_file_list_html reads file data from disk. It returns an error on failure.
func view_pages_index_file_list_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\file_list.html",
		"view/pages/index/file_list.html",
	)
}

// view_pages_index_file_list1_html reads file data from disk. It returns an error on failure.
func view_pages_index_file_list1_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\file_list1.html",
		"view/pages/index/file_list1.html",
	)
}

// view_pages_index_jq_upload_html reads file data from disk. It returns an error on failure.
func view_pages_index_jq_upload_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\jq_upload.html",
		"view/pages/index/jq_upload.html",
	)
}

// view_pages_index_layui_upload_html reads file data from disk. It returns an error on failure.
func view_pages_index_layui_upload_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\layui_upload.html",
		"view/pages/index/layui_upload.html",
	)
}

// view_pages_index_offinedownload_list_html reads file data from disk. It returns an error on failure.
func view_pages_index_offinedownload_list_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\offinedownload_list.html",
		"view/pages/index/offinedownload_list.html",
	)
}

// view_pages_index_search_html reads file data from disk. It returns an error on failure.
func view_pages_index_search_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\search.html",
		"view/pages/index/search.html",
	)
}

// view_pages_index_share_html reads file data from disk. It returns an error on failure.
func view_pages_index_share_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\share.html",
		"view/pages/index/share.html",
	)
}

// view_pages_index_test_html reads file data from disk. It returns an error on failure.
func view_pages_index_test_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\index\\test.html",
		"view/pages/index/test.html",
	)
}

// view_pages_onlineplay_browser_html reads file data from disk. It returns an error on failure.
func view_pages_onlineplay_browser_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\onlineplay\\browser.html",
		"view/pages/onlineplay/browser.html",
	)
}

// view_pages_onlineplay_picture_html reads file data from disk. It returns an error on failure.
func view_pages_onlineplay_picture_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\onlineplay\\picture.html",
		"view/pages/onlineplay/picture.html",
	)
}

// view_pages_onlineplay_video_html reads file data from disk. It returns an error on failure.
func view_pages_onlineplay_video_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\onlineplay\\video.html",
		"view/pages/onlineplay/video.html",
	)
}

// view_pages_user_update_password_html reads file data from disk. It returns an error on failure.
func view_pages_user_update_password_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\user\\update_password.html",
		"view/pages/user/update_password.html",
	)
}

// view_pages_user_user_info_html reads file data from disk. It returns an error on failure.
func view_pages_user_user_info_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\pages\\user\\user_info.html",
		"view/pages/user/user_info.html",
	)
}

// view_share_file_html reads file data from disk. It returns an error on failure.
func view_share_file_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\share\\file.html",
		"view/share/file.html",
	)
}

// view_template_file_history_html reads file data from disk. It returns an error on failure.
func view_template_file_history_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\template\\file_history.html",
		"view/template/file_history.html",
	)
}

// view_template_file_info_html reads file data from disk. It returns an error on failure.
func view_template_file_info_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\template\\file_info.html",
		"view/template/file_info.html",
	)
}

// view_template_file_share_html reads file data from disk. It returns an error on failure.
func view_template_file_share_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\template\\file_share.html",
		"view/template/file_share.html",
	)
}

// view_template_file_tool_html reads file data from disk. It returns an error on failure.
func view_template_file_tool_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\template\\file_tool.html",
		"view/template/file_tool.html",
	)
}

// view_template_user_menu_html reads file data from disk. It returns an error on failure.
func view_template_user_menu_html() ([]byte, error) {
	return bindata_read(
		"D:\\my_code\\cloud-disk-go\\view\\template\\user_menu.html",
		"view/template/user_menu.html",
	)
}

// Asset loads and returns the asset for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func Asset(name string) ([]byte, error) {
	cannonicalName := strings.Replace(name, "\\", "/", -1)
	if f, ok := _bindata[cannonicalName]; ok {
		return f()
	}
	return nil, fmt.Errorf("Asset %s not found", name)
}

// AssetNames returns the names of the assets.
func AssetNames() []string {
	names := make([]string, 0, len(_bindata))
	for name := range _bindata {
		names = append(names, name)
	}
	return names
}

// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() ([]byte, error){
	"view/base_page/index.html": view_base_page_index_html,
	"view/base_page/login/index.html": view_base_page_login_index_html,
	"view/base_page/login/test.html": view_base_page_login_test_html,
	"view/bindata.go": view_bindata_go,
	"view/index.html": view_index_html,
	"view/other/file_history.html": view_other_file_history_html,
	"view/pages/index/ck_demo.html": view_pages_index_ck_demo_html,
	"view/pages/index/file.html": view_pages_index_file_html,
	"view/pages/index/file_list.html": view_pages_index_file_list_html,
	"view/pages/index/file_list1.html": view_pages_index_file_list1_html,
	"view/pages/index/jq_upload.html": view_pages_index_jq_upload_html,
	"view/pages/index/layui_upload.html": view_pages_index_layui_upload_html,
	"view/pages/index/offinedownload_list.html": view_pages_index_offinedownload_list_html,
	"view/pages/index/search.html": view_pages_index_search_html,
	"view/pages/index/share.html": view_pages_index_share_html,
	"view/pages/index/test.html": view_pages_index_test_html,
	"view/pages/onlineplay/browser.html": view_pages_onlineplay_browser_html,
	"view/pages/onlineplay/picture.html": view_pages_onlineplay_picture_html,
	"view/pages/onlineplay/video.html": view_pages_onlineplay_video_html,
	"view/pages/user/update_password.html": view_pages_user_update_password_html,
	"view/pages/user/user_info.html": view_pages_user_user_info_html,
	"view/share/file.html": view_share_file_html,
	"view/template/file_history.html": view_template_file_history_html,
	"view/template/file_info.html": view_template_file_info_html,
	"view/template/file_share.html": view_template_file_share_html,
	"view/template/file_tool.html": view_template_file_tool_html,
	"view/template/user_menu.html": view_template_user_menu_html,
}
// AssetDir returns the file names below a certain
// directory embedded in the file by go-bindata.
// For example if you run go-bindata on data/... and data contains the
// following hierarchy:
//     data/
//       foo.txt
//       img/
//         a.png
//         b.png
// then AssetDir("data") would return []string{"foo.txt", "img"}
// AssetDir("data/img") would return []string{"a.png", "b.png"}
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
	node := _bintree
	if len(name) != 0 {
		cannonicalName := strings.Replace(name, "\\", "/", -1)
		pathList := strings.Split(cannonicalName, "/")
		for _, p := range pathList {
			node = node.Children[p]
			if node == nil {
				return nil, fmt.Errorf("Asset %s not found", name)
			}
		}
	}
	if node.Func != nil {
		return nil, fmt.Errorf("Asset %s not found", name)
	}
	rv := make([]string, 0, len(node.Children))
	for name := range node.Children {
		rv = append(rv, name)
	}
	return rv, nil
}

type _bintree_t struct {
	Func func() ([]byte, error)
	Children map[string]*_bintree_t
}
var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
	"view/base_page/index.html": &_bintree_t{view_base_page_index_html, map[string]*_bintree_t{
	}},
	"view/base_page/login/index.html": &_bintree_t{view_base_page_login_index_html, map[string]*_bintree_t{
	}},
	"view/base_page/login/test.html": &_bintree_t{view_base_page_login_test_html, map[string]*_bintree_t{
	}},
	"view/bindata.go": &_bintree_t{view_bindata_go, map[string]*_bintree_t{
	}},
	"view/index.html": &_bintree_t{view_index_html, map[string]*_bintree_t{
	}},
	"view/other/file_history.html": &_bintree_t{view_other_file_history_html, map[string]*_bintree_t{
	}},
	"view/pages/index/ck_demo.html": &_bintree_t{view_pages_index_ck_demo_html, map[string]*_bintree_t{
	}},
	"view/pages/index/file.html": &_bintree_t{view_pages_index_file_html, map[string]*_bintree_t{
	}},
	"view/pages/index/file_list.html": &_bintree_t{view_pages_index_file_list_html, map[string]*_bintree_t{
	}},
	"view/pages/index/file_list1.html": &_bintree_t{view_pages_index_file_list1_html, map[string]*_bintree_t{
	}},
	"view/pages/index/jq_upload.html": &_bintree_t{view_pages_index_jq_upload_html, map[string]*_bintree_t{
	}},
	"view/pages/index/layui_upload.html": &_bintree_t{view_pages_index_layui_upload_html, map[string]*_bintree_t{
	}},
	"view/pages/index/offinedownload_list.html": &_bintree_t{view_pages_index_offinedownload_list_html, map[string]*_bintree_t{
	}},
	"view/pages/index/search.html": &_bintree_t{view_pages_index_search_html, map[string]*_bintree_t{
	}},
	"view/pages/index/share.html": &_bintree_t{view_pages_index_share_html, map[string]*_bintree_t{
	}},
	"view/pages/index/test.html": &_bintree_t{view_pages_index_test_html, map[string]*_bintree_t{
	}},
	"view/pages/onlineplay/browser.html": &_bintree_t{view_pages_onlineplay_browser_html, map[string]*_bintree_t{
	}},
	"view/pages/onlineplay/picture.html": &_bintree_t{view_pages_onlineplay_picture_html, map[string]*_bintree_t{
	}},
	"view/pages/onlineplay/video.html": &_bintree_t{view_pages_onlineplay_video_html, map[string]*_bintree_t{
	}},
	"view/pages/user/update_password.html": &_bintree_t{view_pages_user_update_password_html, map[string]*_bintree_t{
	}},
	"view/pages/user/user_info.html": &_bintree_t{view_pages_user_user_info_html, map[string]*_bintree_t{
	}},
	"view/share/file.html": &_bintree_t{view_share_file_html, map[string]*_bintree_t{
	}},
	"view/template/file_history.html": &_bintree_t{view_template_file_history_html, map[string]*_bintree_t{
	}},
	"view/template/file_info.html": &_bintree_t{view_template_file_info_html, map[string]*_bintree_t{
	}},
	"view/template/file_share.html": &_bintree_t{view_template_file_share_html, map[string]*_bintree_t{
	}},
	"view/template/file_tool.html": &_bintree_t{view_template_file_tool_html, map[string]*_bintree_t{
	}},
	"view/template/user_menu.html": &_bintree_t{view_template_user_menu_html, map[string]*_bintree_t{
	}},
}}
